package com.droid.lib.controls.demo.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.droid.lib.controls.demo.R;
import com.droid.lib.controls.widget.InstruClock;
import com.droid.lib.controls.widget.InstruPanel;

/**
 * 玫瑰风向图
 */
public class InstruFragment extends Fragment {

    private InstruClock mecNplRatio;//仪表盘多半圆
    private InstruPanel mecNplRatio1;//仪表盘半圆
    // 标题

    public InstruFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_instru, null);

        mecNplRatio = (InstruClock) view.findViewById(R.id.ec_npl_ratio);
        mecNplRatio.setCurrentData(83);
        mecNplRatio1= (InstruPanel) view.findViewById(R.id.ec_npl_ratio1);
        mecNplRatio1.setCurrentData(19);

        return view;
    }
}
